package com.leaves.standard;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.leaves.leetcode.UnitTesting;

import java.util.List;

public class TxxxMain extends UnitTesting<Object[], Double> {

    Solution solution =  new Solution();

    @Override
    protected void generateTestData() {
        ObjectMapper objectMapper = new ObjectMapper();
        try {
            testDataList.add(createTestData(
                    objectMapper.readValue("[[1,12,-5,-6,50,3], 4]", new TypeReference<Object[]>() {}),
                    12.75
            ));
        } catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }


    @Override
    public Double run(Object[] inputData) {
        return 0.0;
    }
}
